
def ask(nick_name):
    print(nick_name)

class Tooler:
    pass

class Person:
    def __init__(self,name):
        self.name = name

    def __str__(self):
        return  f"Person:{self.name}"

class Chinese(Person):
    pass

class Cyx(Chinese,Tooler):
    pass

# f = ask
# f("jack")
#
# c = Person
# p = c("rose")
# print(p)
#*******************************************
# lst = []
# lst.append(ask)
# lst.append(Person)
# for item in lst:
#     print(item("Rose"))

print(Person.__bases__)
print(Chinese.__bases__)
print(Cyx.__bases__)  #显示继承的所有类
print(Cyx.__base__)   #仅显示左边的继承类

print(type.__bases__)  #(<class 'object'>,)
print(object.__bases__) #()
print(type(object)) #<class 'type'>
print(isinstance(object, type))  # True
print(isinstance(type, object))  #True
print(issubclass(type, object))  #True
print(issubclass(object, type))  #False
print(isinstance(list, type))  # True
print(isinstance(type, type))  #True
print(list.__bases__)